import request from '@/utils/request'

export function getTypes(params) {
  return request({
    url: 'http://localhost:2333/org/type/find/type',
    method: 'get',
    params
  })
}

export function save(params) {
  return request({
    url: 'http://localhost:2333/org/type/save',
    method: 'post',
    data:params,
    transformRequest:[
      function () {
        return JSON.stringify(params)
      }
    ],
    headers: {
      'Content-Type':'application/json'
    }
  })
}

